﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Order.Common.IntegratedEvent
{
    public class BaseIntegratedEvent : IntegratedEvent
    {
        public BaseIntegratedEvent()
        {
            EventId = Guid.NewGuid();
        }

        public Guid EventId { get; set; }

        /// <summary>
        /// 获取路由key
        /// </summary>
        public string GetRoutingKey()
        {
            return GetType().Name;
        }
    }
}
